from config import *

#0001|user|1111，类型|账号|密码
#0002|user|meg，类型|账号|消息
class RequestProtocol(object):
    @staticmethod
    def request_login_result(username,password):
        return DELIMITER.join([REQUEST_LOGIN,username,password])
    @staticmethod
    def response_chat(username,message):
        return DELIMITER.join([REQUEST_CHAT,username,message])